<!--productmanager.html--自定义分类使用该页面-->
<ion-modal-view>
 	<ion-header-bar>
 		<div class="buttons">
		    <button class="button button-clear font-large-my" on-tap="closeModal_class()"><i class="ion-chevron-left"></i>&nbsp;返回</button>
		</div>
 		<h1 class="title light">{{title}}</h1>
 	</ion-header-bar>
 	
    <ion-content>
		<div class="list">
			<div class="item item-divider padding-0">
		  		<div class="row padding-0 font-large-my">
		  			 <div class="col col-50">
		  			 	分类名称
		  			 </div>
		  			  <div class="col col-15 text-center">
		  			 	排序
		  			 </div>
		  			  <div class="col text-center">
		  			 	操作
		  			 </div>
		  		</div>
		    </div>
		    <!--|filter:{'is_leaf':true,'parent_id':parent_id}-->
	    	<div class="item padding-5" ng-repeat="custom_cat in data_custom_cat|filter:{'parent_id':parent_id}"><!--循环的div，对应父分类的二级分类-->
	        	<div class="row padding-0  font-large-my">
	      			<div class="col col-50 royal">
	      			 	{{custom_cat.cat_name}}
	      			</div>
	      			<div class="col col-15 text-center">
	      			 	{{custom_cat.p_order}}
	      			</div>
	      			<div class="col text-center font-1rem-my">
	      				<div class="row padding-0">
	      					<div class="col padding-0">
	      						<i class="icon ion-plus-round font-1rem-my font-gray-my" on-tap="onshow_productmanager_sort_add(custom_cat.custom_cat_id,2)"></i>
	      					</div>
	      					<div class="col padding-0">
	      			  			<i class="icon ion-compose positive font-1rem-my" on-tap="onshow_productmanager_sort_edit(custom_cat.custom_cat_id,1)"></i>
	      					</div>
	      					<div class="col padding-0">
	      			 			<i class="icon ion-close-circled assertive font-1rem-my" on-tap="cat_delete(custom_cat.custom_cat_id)"></i>
	      					</div>
	      				</div>
	      			</div>
	      		</div>
	      		<!--三级分类-->
	      		<div class="item padding-0 item-borderless" ng-repeat="custom_cat2 in data_custom_cat|filter:{'parent_id':custom_cat.custom_cat_id}"><!--循环的div，对应父分类的二级分类-->
		      		<div class="row padding-0 font-middle-my">
		      			<div class="col col-50" style="text-indent: 2em;">
		      			 	{{custom_cat2.cat_name}}
		      			</div>
		      			<div class="col col-15 text-center">
		      			 	{{custom_cat2.p_order}}
		      			</div>
		      			<div class="col font-large-my">
		      				<div class="row padding-0 text-center">
		      					<div class="col padding-0">
		      						<i class="icon ion-plus-round font-1rem-my font-gray-my invisible"  on-tap="onshow_productmanager_sort_add(custom_cat.custom_cat_id,2)"></i>
		      					</div>
		      					<div class="col padding-0">
		      			  			<i class="icon ion-compose positive font-1rem-my" on-tap="onshow_productmanager_sort_edit(custom_cat2.custom_cat_id,2)"></i>
		      					</div>
		      					<div class="col padding-0">
		      			 			<i class="icon ion-close-circled assertive font-1rem-my" on-tap="cat_delete(custom_cat2.custom_cat_id)"></i>
		      					</div>
		      				</div>
		      			</div>
		      		</div>
		      	</div>
	        </div>
		</div>      	
    </ion-content>
</ion-modal-view>
